'use strict'

/**
 * @param {Egg.Application} app - egg application
 */

module.exports = (app) => {
  const { router, controller } = app
  router.get('/', controller.home.index)

  router.get('/user/get', controller.user.get)
  router.post('/user/add', controller.user.add)
  router.post('/user/edit', controller.user.edit)
  router.post('/user/delete', controller.user.delete)
}
